/* 标签过滤控件 */
$filter-tag-height: 22px !default; // 标签高度
$filter-tag-margin: 5px !default; // 标签间距
$filter-pane-border-color: #ddd !default; // 面板边框色
$filter-tag-bg: #fff !default; // 面板底色

$filter-tag-height-mobile: 30px !default; // 标签移动端高度
$filter-tag-margin-mobile: 5px !default; // 标签间距

.tw-libtag {
  position: relative;
  display: inline-block;
  max-width: 100%;
  height: 24px;
  line-height: 24px;
  padding: 0 10px;
  font-style: normal;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tw-libtagfilter {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: $filter-tag-margin * 4 + $filter-tag-height;
  padding: $filter-tag-margin 0;
  overflow: hidden;
}

.tw-libtagfilter.xopen {
  height: auto;
}

.tw-libtagfilter-label {
  width: 5em;
  line-height: $filter-tag-height;
  margin: $filter-tag-margin;
  font-weight: 700;
  color: #666;
  text-align: right;
}

.tw-libtagfilter-tags {
  flex: 1;
  padding-right: 30px;
  font-size: 0;
}

.tw-libtagfilter-tags > .tw-libtag {
  font-size: 14px;
  vertical-align: top;
}

.tw-libtagfilter-tags > .tw-ico.xtftoggle {
  position: absolute;
  top: $filter-tag-margin * 2;
  right: 0;
}

// 标签: 过滤区
.tw-libtag.xfilter {
  height: $filter-tag-height;
  line-height: $filter-tag-height;
  margin: $filter-tag-margin;
  border-radius: 5px;
}

.tw-libtag.xfilter.xactive {
  color: #fff;
  background: #26a8ff;
}

.tw-libtag.xfilter:hover {
  @extend .tw-libtag, .xfilter, .xactive;
}

.tw-libtag.xmore .xicon {
  display: inline-block;
}
.tw-libtag.xmore .xhovericon {
  display: none;
}

.tw-libtag.xmore:hover .xicon {
  display: none;
}
.tw-libtag.xmore:hover .xhovericon {
  display: inline-block;
}
